//分类的相关数据的ts类型
export interface ResposeData {
  code: number;
  message: string;
  ok: boolean;
}

export interface CategoryObj {
  id: number | string;
  name: string;
  category1Id?: number;
  category2Id?: number;
}

export interface CategoryResponseData extends ResposeData {
  data: CategoryObj[];
}

export interface AttrValue {
  id: number;
  valueName: string;
  attrId: number;
}

export type AttrValueList = AttrValue[];

export interface Attr {
  id: number;
  attrName: string;
  categoryId: number;
  categoryLevel: number;
  attrValueList: AttrValueList;
}


export interface AttrResponseData extends ResposeData {
  data: Attr[];
}
